'''
重载方法

'''

class Mylist:
    __mylist=[]
    def __init__(self,*args):
        self.__mylist=[]
        for arg in args:
            self.__mylist.append(arg)
    def __add__(self, x):
        for i in range(0,len(self.__mylist)):
            self.__mylist[i]=self.__mylist[i]+x
    def __sub__(self, other):
        pass
    def __str__(self):
        print (self.__mylist)
        return ''

l=Mylist(1,2,3,4,5)
print(l)
l+5
print(l)
print(help(l))

